package com.ssm.xm.mapper;

import com.ssm.xm.model.ThInfo;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ThInfoMapper {
    int deleteByPrimaryKey(Integer thId);

    int insert(ThInfo record);

    int insertSelective(ThInfo record);

    ThInfo selectByPrimaryKey(Integer thId);

    int updateByPrimaryKeySelective(ThInfo record);

    int updateByPrimaryKey(ThInfo record);

    /*查询用户信息 用于登录*/
    ThInfo queryThInfoByThInfo(ThInfo thInfo);
    /*通过角色role_id判断用户身份进行登录——teacher*/
    ThInfo queryByTeacher(ThInfo thInfo);
}